/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;
import javax.persistence.*;
import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

/**
 *
 * @author crevin
 */
@Embeddable
public class TreinoExercicioPK implements Serializable{
    
    @ManyToOne(fetch= FetchType.EAGER)
    @JoinColumn(name="treino_id_treino")
    @Cascade(CascadeType.ALL)
    private Treino treino;
    
    @ManyToOne(fetch= FetchType.EAGER)
    @JoinColumn(name="exercicio_id_exercicio")
    @Cascade(CascadeType.ALL)
    private Exercicio exercicios;
}
